<?php get_header(); ?>
<div id="main" class="a4u-main a4u-section">
  <div id="content" class="a4u-content">
    <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
  	
        <div id="post-<?php the_ID(); ?>" class="a4u-entry">
          <div class="a4u-entry-header">
            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
            <p class="a4u-entry-date">
              <span class="a4u-entry-day"><?php the_time('d') ?></span>
              <span class="a4u-entry-month"><?php the_time('M') ?></span>
            </p>
            <p class="a4u-entry-meta">
              <?php the_author_posts_link(); ?> <?php __('on'); ?> <?php the_time('Y-n-j') ?>, <?php the_time('H:i') ?> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?><?php edit_post_link(__('Edit'), ''); ?></p>
          </div>
          <div class="a4u-entry-content">
            <?php the_content(__('(Read more &raquo;)','apple4us')); ?>
          </div>
        </div>
  		<?php endwhile; ?>
      <div class="a4u-pagination">
        <span class="a4u-prev"><?php next_posts_link('&laquo; Previous Entries') ?></span>
        <span class="a4u-next"><?php previous_posts_link('Next Entries &raquo;') ?></span>
      </div>
  	<?php else : ?>
  	  <!-- TODO(junyu): Error handling. -->
    <?php endif; ?>
  </div>
  <?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>